<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="copyright" content="闻康集团刘代明监制" />
<?php echo $css_file,$change;?>
</head>
<body>
<div class="header">

	<div class="logo left">
		<a target="_blank" href="__URL__/index"><span class="invisible">疾病助手管理系统</span></a>
	</div>
	<div class="rt_col">
        <ul id="skin">
            <li class="s1" onclick="change('blue')"></li>
            <li class="s2" onclick="change('black')"></li>
            <li class="s3" onclick="change('green')"></li>
            <li class="s4" onclick="change('default')"></li>
        </ul>
	</div>
	<div class="col_auto">
    	<div class="log white">您好！<?php echo Session('dis_realname');?>  [<?php 
    			$role = Session('dis_role');
        		 switch ($role){
        		 	case '0':echo '用户';break;
        		 	case '2':echo '会员';break;
        		 	case '1':echo '超级管理员';break;
        		 	default:echo '会员';break;
        		 }
    	?>]<span>|</span><a href="__GROUP__/Index/logout" target="_parent">[退出]</a><span>|</span>
    		<a id="site_homepage" href="/" target="_blank">站点首页</a><span>|</span>
    	</div>
        <ul id="top_menu" class="nav white">
        <li id="welcome" class="on"><a onclick="changeNav('welcome')" href="__GROUP__/Index/menu" target="left">欢迎</a></li>
        <?php 
        if(!empty($list)){
        	foreach ($list as $k=>$val){
        		echo '<li id="'.$val['a'].'">
                        <a onclick="changeNav(\''.$val['a'].'\')" href="__GROUP__/Index/menu/id/'.$val['id'].'" target="left">'.$val['name'].'</a>
                    </li>';
        	}
        }
        ?>
        </ul>
    </div>
</div>
<?php echo $js_file,$cookie;?>
<script type="text/javascript">
//<![CDATA[
function change(name){
	if(name == 'default'){
		cookie.deleteCookie('style');
	}else{
		cookie.setCookie('style',name,365);
	}
	parent.location.reload();
}
function changeNav(name)
{
	var target = document.getElementById('top_menu').getElementsByTagName('li');
	for(var i=0; i<target.length; i++)
	{
		target[i].className = '';
	}
	document.getElementById(name).className = 'on';
	return true;
}
//]]>
</script>
</body>
</html>